# -*- coding: utf-8 -*-
#
# 模块路由文件
# Author: misskey
# Email: 853819078@qq.com
# Created Time: 2023-12-23
# from typing import Dict
from fastapi import APIRouter
# from fastapi import Depends, HTTPException
from schema import MessageResp     # 通用schema
from novelai_api.boilerplate import API

router = APIRouter(
    # dependencies=[Depends(get_token_header)],
    responses={404: {"description": "Not found"}},
)


@router.get("/novelai_api", summary='模块测试API',
            response_model=MessageResp)
async def test_api():
    """模块测试API"""
    return {'message': 'ok'}

async def main():
    async with API() as api_handler:  # noqa: F841  # pylint: disable=W0612
        print(api_handler.api.headers)